package cn.edu.scau.cmi.zhangsan.interProgramming;

public class Chairman {
	private String name;
	private static Chairman theOnlyInstance;
	private Chairman(String name)
	{
		this.name=name;
	}
	public String getName()
	{
		return this.name;
	}
	public static Chairman getInstance(String name)
	{
		if(theOnlyInstance==null)
		{
			theOnlyInstance=new Chairman(name);
		}
		return theOnlyInstance;
	}
}
